<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>找钱吧</title>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
	function performtask(){
		$.post('<%=basePath %>performTask', 
			function(data){
				if(data.success){
					alert("成功！")
				}else{
					alert(data.message);
				}
		});
	}

</script>
</head>
<body>
	<div>
	<a href="javascript:performtask();">执行任务</a>
	</div>
</body>
</html>